(function (angular) {
    'use strict';

angular.module('xianwan').controller('SidebarController', 
    ['$scope', '$rootScope', '$timeout',
        function ($scope, $rootScope, $timeout) {
            $scope.showPanel = function(panel){
                console.log(panel)
                $rootScope.$emit('showPanel',panel);
            }
        }
    ]);
})(angular);